// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.liuxinlong.modules.dao.RoleRightDao;
import com.liuxinlong.modules.entity.RoleRight;
import com.liuxinlong.modules.mapper.RoleRightMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年2月22日
 */
@Service
public class RoleRightDaoImpl extends ServiceImpl<RoleRightMapper, RoleRight> implements RoleRightDao {

	@Override
	public List<RoleRight> queryRoleRightList(String roleId) {
		return baseMapper.queryRoleRightList(roleId);
	}

	@Override
	public void deleteByRoleId(String roleId) {
		baseMapper.deleteByRoleId(roleId);
	}

	@Override
	public void batchAddRoleRight(List<RoleRight> roleRightList) {
		baseMapper.batchAddRoleRight(roleRightList);
	}

	@Override
	public List<RoleRight> queryRoleRightInfo(List<String> roleIdList, String url) {
		return baseMapper.queryRoleRightInfo(roleIdList,url);
	}

	@Override
	public List<RoleRight> queryUserRoleRightList(String userId) {
		return baseMapper.queryUserRoleRightList(userId);
	}

	@Override
	public List<RoleRight> queryRoleByMenu(String menuId) {
		return baseMapper.queryRoleByMenu(menuId);
	}

	@Override
	public List<RoleRight> queryUserMenuRight(String userId, String rightCode) {
		return baseMapper.queryUserMenuRight(userId,rightCode);
	}
}
